public class User {
    private int id;
    private String nickname;
    private String avatarUrl;
//    List<ChatBox> chatBoxList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public User(int id, String nickname) {
        this.id = id;
        this.nickname = nickname;
    }

//    public ChatBox getChatbox(int another){
//        for(ChatBox i : chatBoxList){
//            if (i.id==another)return i;
//        }
//    }
}